package com.li.springbootproject.domain.event;

import org.springframework.context.ApplicationEvent;

/**
 * @Description：定义事件对象
 * @Author：LiDong
 * @Create：2021/3/27
 * @Version：1.0.0
 */
public class UserEvent<T> extends ApplicationEvent {

    private T data;

    public UserEvent(T source) {
        super(source);
        this.data =source;
    }

    public T getData() {
        return this.data;
    }

    public void setData(final T data) {
        this.data = data;
    }
}
